package com.wrupple.muba.widget.client.widgets;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.wrupple.muba.common.client.state.IconSelectionTask.GridElement;

public class GridElementImpl extends Composite implements GridElement {

	private static GridElementImplUiBinder uiBinder = GWT
			.create(GridElementImplUiBinder.class);

	interface GridElementImplUiBinder extends UiBinder<Widget, GridElementImpl> {
	}

	@UiField(provided=true) Widget image;
	@UiField Label label;
	
	public GridElementImpl(Widget image, String label) {
		super();
		this.image=image;
		initWidget(uiBinder.createAndBindUi(this));
		this.label.setText(label);
	}
	

}
